//package com.gitlab.lucky.admin.service;
//
//import com.gitlab.lucky.common.dao.mapper.AdminRoleUserMapper;
//import com.gitlab.lucky.common.dao.model.AdminRoleUser;
//import com.gitlab.lucky.common.service.ServiceImpl;
//import org.springframework.stereotype.Service;
//import tk.mybatis.mapper.entity.Example;
//
//import java.util.List;
//
///**
// * @program: lucky
// * @author: Mr.Han
// * @create: 2019-04-21 18:20
// **/
//@Service
//public class AdminRoleUserService extends ServiceImpl<AdminRoleUserMapper, AdminRoleUser> {
//    //查询该用户角色
//    public List<AdminRoleUser> listByUserId(Long id) {
//        Example example = new Example(AdminRoleUser.class);
//        example.createCriteria().andEqualTo("userId",id);
//        List<AdminRoleUser> adminRoleUsers = this.selectByExample(example);
//        return adminRoleUsers;
//    }
//}
